package com.chen.feign.product;

import com.chen.model.entity.product.ProductSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cgj
 * @date 4/22/25 7:40 PM
 */

@FeignClient(value = "service-product")
public interface ProductFeignClient {

    /**
     * /api/product/getProductSkuBySkuId/{skuId}
     * 根据skuId,查询sku
     */
    @GetMapping("/api/product/getProductSkuBySkuId/{skuId}")
    public ProductSku getProductSkuBySkuId(@PathVariable Long skuId);
}
